<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Insert title here</title>
	</head>
	<body>
		<div id="d1"></div>
		<script type="text/javascript">
			onload = function(){
				d1.innerText="abcd";
			}
			onblur = function(){
				console.log("页面失去焦点");
			}
			onfocus = function(){
				console.log("获取焦点焦点");
			}
		</script>
	</body>
</html>